package com.chen.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chen.domain.SysRole;
import com.chen.mapper.SysRoleMapper;
import com.chen.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SysRoleService {

    @Autowired
    private SysRoleMapper sysRoleMapper;

    @Override
    public Page<SysRole> pageList(Page<SysRole> page, String name) {
        return sysRoleMapper.selectPageList(page, name);
    }

    @Override
    public List<SysRole> findUserRole(String id) {
        return sysRoleMapper.selectUserRole(id);
    }
}
